﻿<controls:ControlBase x:Class="Rio.Framework.Pages.Workflow.GridFilterStateControl"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                      mc:Ignorable="d"
                      xmlns:converter="clr-namespace:Rio.Framework.Pages.AppCode.Helpers.Converter"
                      xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                      xmlns:controls="clr-namespace:Rio.Framework.Pages"
                      d:DesignHeight="85"
                      d:DesignWidth="256">

    <Border x:Name="LayoutRoot"
            BorderThickness="1"
            BorderBrush="#FF8A929E"
            Padding="5"
            Background="#FFDFE2E5">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="10" />
                <RowDefinition Height="30" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <StackPanel Grid.Column="0"
                        Orientation="Horizontal"
                        Grid.RowSpan="2"
                        HorizontalAlignment="Center">
                <Image Source="/Rio.Framework.Pages;component/Assets/Images/flow_finished.png"
                       Width="20"
                       Height="18"
                       d:LayoutOverrides="Width, HorizontalMargin"
                       HorizontalAlignment="Left" />
                <RadioButton Name="rdFinish"
                             Grid.Row="1"
                             IsChecked="false"
                             GroupName="StateMode"
                             Click="RadioButton_Click"
                             HorizontalAlignment="Center"
                             Margin="0,0,32,0"
                             VerticalAlignment="Center" />
            </StackPanel>
            <StackPanel Grid.Column="1"
                        Orientation="Horizontal"
                        Grid.RowSpan="2"
                        HorizontalAlignment="Center">
                <Image Source="/Rio.Framework.Pages;component/Assets/Images/flow_processing.png"
                       Width="20"
                       Height="18"
                       d:LayoutOverrides="Width, HorizontalMargin"
                       HorizontalAlignment="Left" />
                <RadioButton Name="rdProcessing"
                             Grid.Row="1"
                             IsChecked="false"
                             GroupName="StateMode"
                             Click="RadioButton_Click"
                             HorizontalAlignment="Center"
                             Margin="0,0,32,0"
                             VerticalAlignment="Center" />
            </StackPanel>

            <StackPanel Grid.Column="0"
                        Grid.ColumnSpan="2"
                        Grid.Row="2"
                        Orientation="Horizontal"
                        HorizontalAlignment="Center">
                <telerik:RadButton Name="filterButton"
                                   Click="OnFilter"
                                   Margin="2"
                                   Width="80" />
                <telerik:RadButton Name="clearButton"
                                   Click="OnClear"
                                   Margin="2"
                                   Width="80" />
            </StackPanel>
        </Grid>
    </Border>
</controls:ControlBase>
